#ifndef _FILEDEF_H_
#define _FILEDEF_H_

#include <util/core.hpp>

typedef unsigned long	file_path_len;
typedef const char*		file_path;


#if (TARGET_OS == OS_WINDOWS)
    typedef HANDLE              os_fd_t;
    #define FILE_HANDLE		    HANDLE
    #define FILE_INVALID	    INVALID_HANDLE_VALUE
#elif (TARGET_OS == OS_POSIX)
    typedef int                 os_fd_t;
    #define	FILE_HANDLE		    int
    #define	FILE_INVALID	    (int) -1

#elif (TARGET_OS == OS_MAC)
    typedef int                 os_fd_t;
    #define	FILE_HANDLE		    int
    #define	FILE_INVALID	    (int) -1

#endif


#endif
